/**
 *  iBizSys 5.0 机器人生产代码（不要直接修改当前代码）
 *  http://www.ibizsys.net
 */
package com.sa.litetwo.srv.card.demodel;


import java.util.List;
import java.util.HashMap;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

import net.ibizsys.paas.core.Errors;
import net.ibizsys.paas.core.IActionContext;
import net.ibizsys.paas.data.DataObject;
import net.ibizsys.paas.db.DBCallResult;
import net.ibizsys.paas.db.DBFetchResult;
import net.ibizsys.paas.db.IDataRow;
import net.ibizsys.paas.db.IDataTable;
import net.ibizsys.paas.db.SqlParamList;
import net.ibizsys.paas.entity.IEntity;
import net.ibizsys.paas.entity.SimpleEntity;
import net.ibizsys.paas.exception.ErrorException;
import net.ibizsys.paas.web.WebContext;
import net.ibizsys.paas.service.ServiceGlobal;
import net.ibizsys.paas.service.IService;
import net.ibizsys.pswf.core.IWFModel;
import net.ibizsys.paas.sysmodel.ISystemModel;
import net.ibizsys.pswf.core.IWFService;
import net.ibizsys.pswf.core.WFActionParam;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.sa.litetwo.srv.card.entity.GG_CARD;
import com.sa.litetwo.srv.card.service.GG_CARDService;

/**
 * 实体[GG_CARD]逻辑处理[更新信息卡名称]模型对象
 */
public class GG_CARDUPDATEGG_CARDNAMELogicModel extends net.ibizsys.paas.demodel.DELogicModelBase<GG_CARD>{
  
   private static final Log log = LogFactory.getLog(GG_CARDUPDATEGG_CARDNAMELogicModel.class);

   public GG_CARDUPDATEGG_CARDNAMELogicModel(){
        super();
        //设置逻辑基本信息
        this.setId("30EF8416-A00E-481C-BC61-2C2E7AB9BC60");
        this.setName("UPDATEGG_CARDNAME");
        //设置默认参数名称
        this.setDefaultParamName("Default");  
    }

   /* (non-Javadoc)
    * @see net.ibizsys.paas.demodel.DELogicModelBase#onExecute(net.ibizsys.paas.core.IActionContext)
    */
   @Override
   protected void onExecute(IActionContext iActionContext) throws Exception
   {
		executeBegin(iActionContext);
   }

   /**
  * 执行逻辑处理[FILLGG_CARDNAME]
  * @Param iActionContext 处理上下文参数
  */
protected void executePrepareparam1(IActionContext iActionContext) throws Exception
{
    com.sa.litetwo.srv.card.entity.GG_CARD _default = (com.sa.litetwo.srv.card.entity.GG_CARD)iActionContext.getParam("Default");
    SessionFactory sessionFactory = iActionContext.getSessionFactory();

    //Default[XM] ==> Default[GG_CARDNAME]
    _default.set("GG_CARDNAME",_default.get("XM"));

} 
   /**
  * 执行逻辑处理[开始]
  * @Param iActionContext 处理上下文参数
  */
protected void executeBegin(IActionContext iActionContext) throws Exception
{
    com.sa.litetwo.srv.card.entity.GG_CARD _default = (com.sa.litetwo.srv.card.entity.GG_CARD)iActionContext.getParam("Default");
    SessionFactory sessionFactory = iActionContext.getSessionFactory();


     if(true){
    executePrepareparam1(iActionContext);
}
} 

}